home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5941 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  52 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cnn.nas.nasa.gov!eos!kozon
  3. From: kozon@eos.arc.nasa.gov (Tom Kozon)
  4. Subject: C++ doesn't work on g++ compiler -- what gives?
  5. Message-ID: <1996Feb6.235943.6395@eos.arc.nasa.gov>
  6. Organization: NASA Ames Research Center
  7. Distribution: usa
  8. Date: Tue, 6 Feb 1996 23:59:43 GMT
  9.  
  10.  
  11. Hello,
  12. I am currently having problems compiling C++ code using
  13. a g++ compiler on my DECstation 5100 running Ultrix v4.2. 
  14.  
  15. When I try to compile a sample "hello world" type of program
  16. (shown below), the following occurs (further below).
  17. Does anybody have any idea what is going on (or better yet,
  18. how I can fix this thing)? 
  19. Thanks,
  20. Tom
  21. kozon@eos.arc.nasa.gov
  22.  
  23. csh> 
  24. csh> more simple_test.C
  25. #include <iostream.h>
  26. #include <stdio.h>
  27.  
  28. void main()
  29. {
  30.  
  31.  
  32. printf("hello\n");
  33.  
  34. exit(0);
  35.  
  36. }
  37. csh> 
  38. csh> 
  39. csh> g++ simple_test.C
  40. /usr/local/lib/g++-include/streambuf.h: In method `int filebuf::do_flush()':
  41. In file included from /usr/local/lib/g++-include/iostream.h:25,
  42.                  from simple_test.C:1:
  43. /usr/local/lib/g++-include/streambuf.h:421: member `_pbase' is from private base class
  44. /usr/local/lib/g++-include/streambuf.h:421: member `_pptr' is from private base class
  45. /usr/local/lib/g++-include/streambuf.h:421: member `_pbase' is from private base class
  46. /usr/local/lib/gcc-lib/mips-dec-ultrix4.2/2.7.0/include/stdio.h: At top level:
  47. In file included from /usr/local/lib/g++-include/stdio.h:69,
  48.                  from simple_test.C:2:
  49. /usr/local/lib/gcc-lib/mips-dec-ultrix4.2/2.7.0/include/stdio.h:119: warning: abstract declarator used as declaration
  50. csh> 
  51. csh> 
  52.